package com.hisense.ovcloud.mqtt.warehouse.entity.device;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Table;
import com.mybatisflex.core.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@Data(staticConstructor = "model")
@Table("warehouse_product_status")
public class WarehouseProductStatus extends Model<WarehouseProductStatus> {

    public WarehouseProductStatus() {
    }

    public WarehouseProductStatus(String domain, String subDomain, String publicKey, String privateKey, int status, int type, String createTime, String modifyTime) {
        this.domain = domain;
        this.subDomain = subDomain;
        this.publicKey = publicKey;
        this.privateKey = privateKey;
        this.status = status;
        this.type = type;
        this.createTime = createTime;
        this.modifyTime = modifyTime;
    }

    @Column(value = "domain")
    private String domain;

    @Column(value = "sub_domain")
    private String subDomain;

    @Column(value = "public_key")
    private String publicKey;

    @Column(value = "private_key")
    private String privateKey;

    @Column(value = "status")
    private int status;

    @Column(value = "type")
    private int type;

    @Column(value = "create_time")
    private String createTime;

    @Column(value = "modify_time")
    private String modifyTime;

}
